package com.suneast.suneaststore.modules.personal.order.event;

import com.suneast.suneaststore.modules.common.Flag;

public class WithdrawResult {
    private final @Flag.Result
    int result;
    private final double balanceValue;
    private final String msg;

    public WithdrawResult(int result, double balanceStr) {
        this.result = result;
        this.balanceValue = balanceStr;
        msg = null;
    }

    public WithdrawResult(int result, String msg) {
        this.result = result;
        balanceValue = 0d;
        this.msg = msg;
    }

    public int getResult() {
        return result;
    }

    public double getBalanceValue() {
        return balanceValue;
    }

    public String getMsg() {
        return msg;
    }
}
